public class Main {

  public static void main(String[] args) {

    for (int x = 0; x <= 20; x++) {
      int rest = 100 - x * 5; 
      for (int y = 0; y <= rest / 3; y++) {
        int z = 100 - x - y;
        if (5 * x + 3 * y + z / 3 == 100) {
          System.out.println("success: " + x + " " + y + " " + z); 
        }
      }
    }
  }
}